<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>日志</title>
<%@ include file="/pages/common/base/Head.jsp"%>
<script type="text/javascript" src="/${res.contextPath}/js/user/workRecord.js?version=${res.version}"></script>
<script>
	$(function(){
		WorkRecord.initPage("${res.contextPath}");	
	});
  </script>
</head>
<body>
<form class="layui-form">
	<div class="layui-form-item">
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
		  <legend>日志添加</legend>
		</fieldset>
		<div class="layui-inline">
			<label class="layui-form-label">日期选择<span style="color:red">*</span></label>
			<div class="layui-input-inline">
				<input type="text" name="date" id="date" autocomplete="off" lay-verify="required"
					class="layui-input">
			</div>
		</div>
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">工作</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入内容" name="description" class="layui-textarea" style="width:500px;height:150px"></textarea>
			</div>
		</div>
		  <div class="layui-form-item">
			    <label class="layui-form-label">记录生活</label>
			    <div class="layui-input-block">
			      <input type="checkbox" name="close" lay-skin="switch"  lay-filter="switchTest" lay-text="ON|OFF">
			    </div>
		  </div>
		  <div style="display:none" id="life">
		  <div class="layui-form-item">
		    <label class="layui-form-label">早睡</label>
		    <div class="layui-input-block">
		      <input type="radio" name="sleep" value="1" title="是" >
		      <input type="radio" name="sleep" value="0" title="否">
		    </div>
		  </div>
  		  <div class="layui-form-item">
		    <label class="layui-form-label">早起</label>
		    <div class="layui-input-block">
		      <input type="radio" name="getUp" value="1" title="是" >
		      <input type="radio" name="getUp" value="0" title="否">
		    </div>
		  </div>
		   <div class="layui-form-item">
		    <label class="layui-form-label">健身30min</label>
		    <div class="layui-input-block">
		      <input type="radio" name="exercise" value="1" title="是" >
		      <input type="radio" name="exercise" value="0" title="否">
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">学习30min</label>
		    <div class="layui-input-block">
		      <input type="radio" name="study" value="1" title="是" >
		      <input type="radio" name="study" value="0" title="否">
		    </div>
		  </div>
  		  <div class="layui-form-item">
		    <label class="layui-form-label">体重</label>
		    <div class="layui-input-inline">
		     <input type="text" name="weight" placeholder="请输入体重" lay-verify="weight" autocomplete="off" class="layui-input">
		    </div>
		  </div>
		  <div class="layui-form-item layui-form-text">
			<label class="layui-form-label">备注</label>
				<div class="layui-input-block">
					<textarea placeholder="请输入备注" name="remark" class="layui-textarea" style="width:500px;height:100px"></textarea>
				</div>
			</div>
			</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="submit">立即提交</button>
			</div>
		</div>
	</div>
	</form>
</body>
</html>